package ooday05;

public class Test {
    public static void main(String[] args) {
        Enum1[] e =Enum1.values();
        for(int i = 0;i<e.length;i++){
            System.out.println(e[i].getGetSeasonName());
            System.out.println(e[i].getGetSeasonName()+","+e[i].getGetSeasonDiscription());
        }
        System.out.println(Enum1.SPRING);
        System.out.println(Enum1.valueOf("SUMMER"));
        System.out.println(Enum1.WINTER.getGetSeasonName()+","+Enum1.WINTER.getGetSeasonDiscription());
        Enum1 season = Enum1.SPRING;
        switch (season){
            case SPRING:
                System.out.println(Enum1.SPRING.getGetSeasonName()+","+Enum1.SPRING.getGetSeasonDiscription());
                break;
            case SUMMER:
                System.out.println(Enum1.SPRING.getGetSeasonName()+","+Enum1.SPRING.getGetSeasonDiscription());
                break;
            case AUTUMN:
                System.out.println(Enum1.SPRING.getGetSeasonName()+","+Enum1.SPRING.getGetSeasonDiscription());
                break;
            case WINTER:
                System.out.println(Enum1.SPRING.getGetSeasonName()+","+Enum1.SPRING.getGetSeasonDiscription());
                break;
        }


























//        /*Note Q = new Note();//加载类时自动执行静态块
//        //1）第一步走main方法， 走Note数据类型，走静态块，输出
//        //2)然后创建对象，走静态方法，输出
//        Note W = new Note();
//        Note e = new Note();*/
//        /*Note a1 = new Note();
//        a1.show();
//        a1.say();*/
//
//              /*  Note q1 = new Note();
//                q1.show();
//                Note q2 = new Note();
//                q2.show();
//                Note q3 = new Note();
//                q3.show();
//        System.out.println(q3.a);
//        System.out.println(Note.b);*/

    }
}
